<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="renderer" content="webkit">

    <title>
        <?php echo ($res["title"]); ?>
    </title>

    <!-- CSS  -->
    <!--<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">-->
    <link href="/bm/Public/css/Mi.css" type="text/css" rel="stylesheet" media="screen,projection"/>
    <link href="/bm/Public/css/materialize.min.css" type="text/css" rel="stylesheet" media="screen,projection"/>
    <link href="/bm/Public/css/style.css" type="text/css" rel="stylesheet" media="screen,projection"/>
    

</head>
<body>
<nav class="blue" role="navigation">
    <div class="nav-wrapper container"><img class="z-depth-2 hide-on-med-and-down circle responsive-img" src="/bm/Public/images/logo3.jpg" width="50px"
                                            style="margin:5px;border-radius:50%"><a id="logo-container"
                                                                                    href="<?php echo U('Index/index');?>"
                                                                                    class="brand-logo">技能竞赛平台</a>
        <ul class="right hide-on-med-and-down">
            <li><a href="<?php echo U('Index/index');?>">首页</a></li>
            <?php if(session('?stuid')): ?><li><a href="<?php echo U('UserInfo/index');?>">报名详情</a></li>
                <li><a class="dropdown-button" href="#!" data-activates="dropdown1"><?php echo session("stuid");?><i
                        class="mdi-navigation-arrow-drop-down right"></i></a></li>
                <li><a class="waves-effect waves-light btn red" href="<?php echo U('Login/logout');?>">退出</a></li>
                <?php else: ?>
                <li><a class="waves-effect waves-light btn red" href="<?php echo U('Login/index');?>">登录</a></li><?php endif; ?>
        </ul>
        <!-- Dropdown Structure -->
        <ul id="dropdown1" class="dropdown-content z-depth-2" style="margin-top: 70px;">
            <li><a href="<?php echo U('Home/UserInfo/changePwd');?>">修改密码</a></li>
            <!--<li><a href="#!">我的收藏</a></li>-->
        </ul>
        <ul id="nav-mobile" class="side-nav">
            <li><a href="<?php echo U('Index/index');?>">首页</a></li>

            <?php if(session('?stuid')): ?><li><a href="<?php echo U('Index/index');?>"><?php echo ($_SESSION["stuid"]); ?></a></li>
                <li><a href="<?php echo U('Home/UserInfo/index');?>">报名详情</a></li>
                <li><a href="<?php echo U('Home/UserInfo/changePwd');?>">修改密码</a></li>
                <li><a href="<?php echo U('Home/Login/logout');?>">退出</a></li>
                <?php else: ?>
                <li><a href="<?php echo U('Home/Login/index');?>">登录</a></li><?php endif; ?>
        </ul>
        <a href="#" data-activates="nav-mobile" class="button-collapse"><i class="material-icons">menu</i></a>
    </div>
</nav>

    <div class="container">
        <div class="section" id="mysec">
            <div class="row">
                <div class="col s12 m12 l12">
                    <div class="card-panel">
                        <div class="row">
                            <h4 class="center-align"><?php echo ($res["title"]); ?></h4>
                            <div class="left" style="color: gray">发布时间：<span
                                    class="mui--divider-right"><?php echo date("Y-m-d",$res["addtime"]);?>&nbsp;</span>&nbsp;报名人数：<span><?php echo sumPeo($res['enid'],$res['enclass']);?>/<?php echo ($res["num"]); ?></span>
                            </div>
                            <div class="right">报名截止时间：<span
                                    class="center-aligne" style="color: red"><?php echo date("Y-m-d",$res["start"]);?>~<?php echo date("Y-m-d",$res["end"]);?></span>
                            </div>
                            <div class="clearfix"></div>
                        </div>
                        <div class="valign" id="content-text">
                            <?php echo ($res["content"]); ?>
                        </div>
                        <div class="center">
                            <?php if(Is_Enrolled($_SESSION['stuid'],$res['enclass']) > 0 ): ?><a class="waves-effect waves-light btn disabled red">已报名</a>
                                <?php else: ?>
                                <?php if(sumPeo($res['enid'],$res['enclass']) < $res['num'] ): if(time() < ($res['end']+86400) ): if(($vo["enclass"]) == "1"): ?><!-- <a class="waves-effect waves-light btn red"
                                               href="<?php echo U('Stuform/oneAdd',array('enid'=>$res['enid']));?>"
                                               onclick="if(confirm('确定报名吗?')==false)return false;">报名</a> -->
                                               <a class="waves-effect waves-light btn red"
                                               href="#">报名</a>
                                            <?php else: ?>
                                            <!-- <a class="waves-effect waves-light btn red"
                                               href="<?php echo U('Stuform/team',array('enid'=>$res['enid']));?>">报名</a> -->
                                               <a class="waves-effect waves-light btn disabled red"
                                               href="#">报名</a><?php endif; ?>
                                        <?php else: ?>
                                        <a class="waves-effect waves-light btn disabled red">报名已过期</a><?php endif; ?>
                                    <?php else: ?>
                                    <a class="waves-effect waves-light btn disabled red">报名已满</a><?php endif; endif; ?>
                        </div>
                        <br>
                        <div class="row">
                            <div class="right">
                                <a href="javascript:history.back(-1)">返回上一页</a>
                            </div>
                        </div>

                        <div class="row">
                        </div>
                        <div class="clearfix"></div>


                    </div>
                </div>
            </div>
        </div>
    </div>



<div class="clearfix"></div>

<footer class="page-footer blue" style="padding-top: 0px;">
    <div class="footer-copyright">
        <div class="container center">
            © 2016 广西水利电力职业技术学院<a class="orange-text text-lighten-3" href="#">敏捷软件协会</a>
        </div>
    </div>
</footer>
<script type="text/javascript" src="/bm/Public/js/jquery.js"></script>
<script src="/bm/Public/js/jquery-ui.js"></script>
<script src="/bm/Public/js/materialize.js"></script>
<script src="/bm/Public/js/init.js"></script>


    <script>
        $(function () {
            $("#content-text img").removeAttr("style");
        });
    </script>
    <script>window._bd_share_config = {
        "common": {
            "bdSnsKey": {},
            "bdText": "",
            "bdMini": "2",
            "bdMiniList": false,
            "bdPic": "",
            "bdStyle": "0",
            "bdSize": "16"
        },
        "slide": {"type": "slide", "bdImg": "2", "bdPos": "right", "bdTop": "100"},
        "image": {"viewList": ["qzone", "tsina", "tqq", "renren", "weixin"], "viewText": "分享到：", "viewSize": "24"},
        "selectShare": {"bdContainerClass": null, "bdSelectMiniList": ["qzone", "tsina", "tqq", "renren", "weixin"]}
    };
    with (document)0[(getElementsByTagName('head')[0] || body).appendChild(createElement('script')).src = 'http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion=' + ~(-new Date() / 36e5)];</script>



</body>

</html>

</html>